package com.xysoft.framework.orm;

import java.io.Serializable;

import org.hibernate.Criteria;

import com.xysoft.framework.entity.PagedCollection;

public interface EntityManager<T> {
	EntityDao<T> getEntityDao();
	T createNew();
	void save(T entity);
	void delete(T entity);
	T get(Serializable id);
	Criteria createQuery();
	PagedCollection<T> findAll();
}
